package com.idanchuang.component.just.web.swagger;

/**
 * @author yjy
 * Created at 2022/3/7 2:01 下午
 */
public class SwaggerConfigBean {

    /** 是否开启swagger */
    private boolean enabled = false;
    /** controller类所在包 */
    private String controllerPackage;
    /** 文档标题 */
    private String title;
    /** 文档描述 */
    private String description;
    /** 服务条款url */
    private String termsOfServiceUrl;
    /** 联系人 */
    private String contact;
    /** 接口文档版本 */
    private String version;

    /** 是否需要登入 */
    private boolean needLogin = true;
    /** 登入用户名 */
    private String username = "swagger";
    /** 登入密码 */
    private String password = "swagger";

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getControllerPackage() {
        return controllerPackage;
    }

    public void setControllerPackage(String controllerPackage) {
        this.controllerPackage = controllerPackage;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getTermsOfServiceUrl() {
        return termsOfServiceUrl;
    }

    public boolean isNeedLogin() {
        return needLogin;
    }

    public void setNeedLogin(boolean needLogin) {
        this.needLogin = needLogin;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setTermsOfServiceUrl(String termsOfServiceUrl) {
        this.termsOfServiceUrl = termsOfServiceUrl;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }
}
